/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.system.action.system;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.system.mapper.system.HardwareConfigMapper;
public class HardwareConfig extends BaseAction
{
    @Autowired(required=false)
	private HardwareConfigMapper mapper;
    /**
    短信配置
    */
    
    public Map smsConfigure() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> t_spec=mapper.t_spec(params);
        SQLMap t_spec_emt=t_spec.getExistfirst();
        result.put("t_spec", t_spec_emt);
        
        
        SQLList<SQLMap> s_sms=mapper.s_sms(params);
        result.put("s_sms", s_sms);
        
        return result;
    }
    /**
    修改标签
    */
    
    public Map messageLabelUp() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> ss=mapper.ss(params);
        SQLMap ss_emt=ss.getExistfirst();
        result.put("ss", ss_emt);
        
        return result;
    }
    /**
    短信配置修改
    */
    
    public Map smsConfigureSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        Object sms_cnt =
        mapper.sms_cnt(params);
        result.put("sms_cnt", sms_cnt);
        
        
        mapper.smsConfigureSubmit(params);
        
        return result;
    }
    /**
    修改标签修改
    */
    
    public Map messageLabelUpSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        int u_sms_spec = mapper.u_sms_spec(params);
        result.put("u_sms_spec", u_sms_spec);
        
        return result;
    }
    /**
    增加短信标签修改
    */
    
    public Map messageLabelAddSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        int u_sms_spec = mapper.u_sms_spec(params);
        result.put("u_sms_spec", u_sms_spec);
        
        return result;
    }
}